<?php
require_once(OC::$SERVERROOT . "/apps/company/lib/quota.php");

$LoginStats = PUtil::checkUserLogin(true);
if ($LoginStats !== true) {
   echo $LoginStats;
   exit();
}

OCP\JSON::callCheck();

$model = new PCompanyModelQuota();

if($model->setCompanyCollectionQuota()) {
   OCP\JSON::success();
} else {
   OC_JSON::error(array('data' => array( 'message' => $model->getError() ? $model->getError() : '系统错误')));
}
